<!-- 
    @author Wójcik Karol <wojcikk@student.agh.edu.pl>
    @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
-->

<%= error_messages_for 'lessons_user' %>

<!--[form:lessons_user]-->
<p><label for="lessons_user_user_id">Prowadzacy</label><br/>
<%=  select("lessons_user", "user_id", User.find(:all, :conditions => "role = 'prowadzacy'").collect {|p| [ "#{p.mark.name} #{p.surname} #{p.name}  ", p.id ] },  {:include_blank => true}) %></p>

<p><label for="lessons_user_lgrzaj">Lgrzaj</label><br/>
<%= text_field 'lessons_user', 'lgrzaj'  %></p>

<p><label for="lessons_user_lgrroz">Lgrroz</label><br/>
<%= text_field 'lessons_user', 'lgrroz'  %></p>
<!--[eoform:lessons_user]-->

